access its own home directory. In this way, the server ensures the security of other files on the FTP service. Such accounts are called guest users in vsftpd. Accounts with such users can only access the directories in their home directories, rather than files other than the home directories.
Iii. Common FTP server pr
, which is very dangerous. We will introduce vsftp later!
Virtual users (also called GUEST users in some places ):Using an independent account/password data file, this account has a feature that it can only access its own home directory. In this way, the server ensures the security of other files on the FTP service. This type of account, in VsftpdSoftwareIs called a Guest user. Accounts with such users can
I. FTP instructionsThe common FTP in Linux system is vsftp, that is, very Security File Transfer Protocol. There is also a proftp (profession FTP). Here is also a simple description of the configuration under Vsftp.VSFTP provides 3 types of remote login options:(1) Anonymous
A lot of information on the Internet, 90% of the code after the run, with the Linux FTP command login.Later found that there is a project in the experimental building is an FTP server, then had to spend 400 of the ocean to buy a member, the result of its code run, the FTP co
Reference article: https://www.waitig.com/linux-or-centos-install-vsftpd-and-setup-it.htmlThe steps are summarized as follows:Installation: Yum Install VSFTPDAction: Service VSFTPD Start|stop|restartConfiguration section (emphasis):1. In order to secure the system, an FTP user is generally established, the user cannot log on to the system, and can only access the files in their home directory.useradd-d/var/
Whether Linux or Windows hosts are required to configure the FTP server will be, the following for you in the Linux system to build the FTP server environment details, there is a need to understand and small set to learn.
1, SSH
1, SSH Landing server2, yum installation vsftpd
installation command: Yum install vsftpd3, modify configuration, increase start-up
Modify configuration: vi/etc/vsftpd/vsftpd.conf to set the Anonymous_enable=yes value to no, increase boot startup, command:
Chkconfig–level vsftpd on4, increase the FTP user, and set the password
Command: Useradd ftplinli-s/sbin/nologin-d/www Ftplinli for FTP account,/WWW f
is added to the file vsftpd.chroot_list is not subject to restriction.That is, you can browse the parent directory of its home directory.
Therefore, if you do not want a user to be able to browse the content in the parent directory of their home directory, you can set it up, and then do not add the user in the file vsftpd.chroot_list (at which point the user in the file can browse to a directory other than their home directory).
Or, set the following
Chroot_local_user=noChroot_list_
Build an ftp server in linux and an ftp server in linux
Online InstallationYum install vsftpd pam * db4 *-yUse the command to configure vsftp as a system serviceChkconfig -- level 35 vsftpd on
2Configure the host of the vsftpd
restricted file. By examining the two connections, the server is protected from this situation: the control connection is connected with a trusted host connection and the data connection is not. Similarly, customers should examine the IP address of the remote host after receiving an open port connection in the listening mode to ensure that the connection is established by the desired server. 2. Password pr
confirmation message and the data transfer channel is established, but if the port on the server is used by another resource, then the server returns the unacknowledged information, then this is the client sends the PASV command again.Attention:
In the whole process of the FTP client connecting the server, th
Configure the ftp server and the linuxftp server in Linux
1. Run the rpm-qa | grep vsftpd command to check whether the ftp has been installed. If ftp is not installed, run yum-y install vsftpd to install it. (use apt-get install v
Linux FTP and FTPS and FTP based on MySQL virtual user authentication server Building1.FTP protocol: With command and data connection two kindscommand connection, control connection: 21/TCPData connection: Active mode, running on 20/TCP port and passive mode, running on rand
the same direction, and the client initiates a connection to the server for data transfer. The client's connection port is the port to use when initiating the data connection request. When an FTP client accesses an FTP server outside the firewall, it needs to use the passive transfer mode.
3. Single port mode
In add
The full name of FTP is
File Transfer Protocol
(File Transfer Protocol Is the protocol used to transmit files. it works on the Seventh Layer of the OSI model, that is, the application layer, using TCP transmission instead of UDP. in this way, the FTP client and the server need to go through a "three-way handshake" process before establishing a connection. anot
.jpg "title=" $ Bgjb@0j_5eh$e (YL3@60ZW.png "alt=" Wkiom1tucbmytscfaaepmr8vu90058.jpg "/>You can see the directory of other virtual users,650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/80/wKiom1TUcGSSv9Z5AAGQIs3ZC0Q952.jpg "title=" N2 ' R ' @ k@)) u8~ggh9um[kii.png "alt=" Wkiom1tucgssv9z5aagqis3zc0q952.jpg "/>2> other Virtual user logins650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/80/wKiom1TUclGjRRj9AAEtQpcfagg874.jpg "title=" O} 6rq62vth33nzrq6cd{ap4.png "alt=" W
Follow these steps to Configure ftp for logging:
1. # cp/etc/inetd. conf/etc/inetd. conf. bak
2. # vi/etc/inetd. conf
Edit the following ftp lines and add the-l flag at the end:
Ftp stream tcp6 nowait root/usr/sbin/ftpd-l
3. # vi/etc/syslog. conf
Add the following line at the end of the syslog. conf file:
Daemon.info/tmp/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.